<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./zepto.js"></script>
    <script src="./zepto.touch.js"></script>
    <style>
    .a{
        width:200px;
        height:300px;
        border:1px solid green;
        left:100px;
        top:100px;
    }
    .b{
        width:100px;
        height:100px;
        border:1px solid red;
        position: absolute;
        left:100px;
        top:100px;
    }
    </style>
</head>
<body>
    <input type="text" class="a">
    <div class="b"></div>
    <ul id="console">
    
    </ul>
    <script>
    function myConsole(str) {
            var li = document.createElement('li');
            li.innerHTML = str;
            document.querySelector('#console').appendChild(li);
        }
    $('.a').on('tap',function(){
        myConsole('aa');
    })
    $('.b').on('tap',function(){
        myConsole('bb');
    })
    </script>
</body>
</html>